package com.api.shopapi.service;

import com.api.shopapi.entity.Nurse;
import com.api.shopapi.entity.User;
import com.api.shopapi.entity.dto.NurseDTO;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public interface NurseService {

    List<NurseDTO> getList(String institutionCode);

    int insert(Nurse nurse);

    int updateByNurseCode(User user,Nurse nurse);

    int delete(String nurseCode);

    Nurse getByNurseCode(String nurseCode);

    int regInsert(User user, Nurse nurse);

    Nurse getByUserCode(String userCode);

    PageInfo<NurseDTO> getPageList(int pageIndex, int pageSize, String institutionCode, String name, int status);

    PageInfo<NurseDTO> pageByGovCode(int pageIndex, int pageSize, String governmentCode);


    PageInfo<Nurse> pageByGovCodeInsCode(int pageIndex, int pageSize,
                                         String governmentCode, String institutionCode);

    List<NurseDTO> listByGovCode(String governmentCode);

    List<Nurse> listByInsCode(String institutionCode);


}
